<?php
session_start();
if($_GET['_suc']==1)
{
	$msg= '<div class="sucmsg"><img src="images/information.png" align="absmiddle" />&nbsp;User Registered Successfully</div>';
}
?>

<script type="text/javascript">
function state(str)
{
if (str=="")
  {
  document.getElementById("txtHint").innerHTML="";
  return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {

   document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
    }
  }
 
xmlhttp.open("GET","application/getuser.php?q="+str,true);

xmlhttp.send();
}
</script>
<div
	class="mainWarpArea">
	<!-- Begin contentwarp -->
	<div class="contentwarp">
		<div id="register"
			style="background-color: #FFF; float: left; width: 900px; border: 0px solid #CCC;">
			<!-- Begin ContentBox -->

			<h2 style="padding-left: 20px;" class="classifiedstitle">Register</h2>
			<form action="" method="post" enctype="multipart/form-data"
				class="reg" name="reg_user" onsubmit="return validateReg();">
				<table width="100%" align="center" border="0" cellpadding="0"
					cellspacing="0">
					<tbody>
						<tr>
							<td colspan="2" align="left" valign="middle">&nbsp;</td>
						</tr>
						<tr>
							<td colspan="3" align="center"><?php 
							echo $msg;
							?>
							</td>
						</tr>
						<tr>
							<td width="75%" align="center" valign="middle">
								<fieldset class="borders" style="width: 600px;">
									<legend class="gray12">› Sign Up ‹</legend>
									<table width="99%" align="center">
										<tbody>
											<tr>
												<td colspan="3" valign="middle" align="left"><div
														id="error_msg" class="error-notice" style="display:none"></div></td>
											</tr>
											<tr>
												<td colspan="2" valign="middle" align="left">&nbsp;</td>
												<td width="55%" align="right" valign="middle">&nbsp;</td>
											</tr>
											<tr>
												<td align="left" valign="middle" bgcolor="#535353"></td>
												<td height="22" colspan="2" align="left" valign="middle"
													bgcolor="#CCCCCC" class="font12"
													style="padding-left: 20px;"><b>Account Information:</b>
												</td>
											</tr>
											<tr height="35">
												<td valign="middle" width="1%" align="left">&nbsp;</td>
												<td style="padding-left: 20px;" class="font12"
													valign="middle" width="44%" align="left">Username <span
													class="red">*</span>
												</td>
												<td valign="middle" align="left"><input class="txtborder"
													id="username" name="username" style="width: 200px;"
													type="text" />
												</td>
											</tr>
											<tr height="35">
												<td valign="middle" align="left">&nbsp;</td>
												<td style="padding-left: 20px;" class="font12"
													valign="middle" align="left">Password <span class="red">*</span>
												</td>
												<td valign="middle" align="left"><input class="txtborder"
													id="passwd" name="passwd" style="width: 200px;"
													type="password">
												</td>
											</tr>
											<tr height="35">
												<td valign="middle" align="left">&nbsp;</td>
												<td style="padding-left: 20px;" class="font12"
													valign="middle" align="left">Retype password <span class="red">*</span>
												</td>
												<td valign="middle" align="left"><input class="txtborder"
													id="passwd_rem" name="passwd_rem" style="width: 200px;"
													type="password">
												</td>
											</tr>
											<tr height="35">
												<td valign="middle" align="left">&nbsp;</td>
												<td style="padding-left: 20px;" class="font12"
													valign="middle" align="left">Email <span class="red">*</span>
												</td>
												<td valign="middle" align="left"><input class="txtborder"
													id="email" name="email" style="width: 200px;" type="text"
													onBlur="return state(this.value)">
													<div id="txtHint" style="height: 10px;"></div></td>
											</tr>
											<tr height="35">
												<td valign="middle" align="left">&nbsp;</td>
												<td style="padding-left: 20px;" class="font12"
													valign="middle" align="left">Student Email</td>
												<td valign="middle" align="left"><input class="txtborder"
													id="studentemail" name="studentemail" style="width: 200px;"
													type="text" onBlur="return state(this.value)">
													<div id="txtHint2" style="height: 10px;"></div></td>
											</tr>
											<!--<tr height="35">
            <td style="padding-left:20px"><label>Phone Number</label></td>
            <td><input class="text" name="phone_num" type="text" /></td>
        </tr>-->
											<tr>
												<td align="left" valign="middle" bgcolor="#535353"></td>
												<td height="22" colspan="2" align="left" valign="middle"
													bgcolor="#CCCCCC" class="font12"
													style="padding-left: 20px;"><b>Personal Information:</b>
												</td>
											</tr>
											<tr height="35">
												<td valign="middle" align="left">&nbsp;</td>
												<td style="padding-left: 20px;" class="font12"
													valign="middle" align="left">First Name <span class="red">*</span>
												</td>
												<td valign="middle" align="left"><input class="txtborder"
													id="fname" name="fname" style="width: 200px;" type="text">
												</td>
											</tr>

											<tr height="35">
												<td valign="middle" align="left">&nbsp;</td>
												<td style="padding-left: 20px;" class="font12"
													valign="middle" align="left">Last Name <span class="red">*</span>
												</td>
												<td valign="middle" align="left"><input class="txtborder"
													id="lname" name="lname" style="width: 200px;" type="text">
												</td>
											</tr>
											<!--<tr height="35">
            <td valign="middle" align="left">&nbsp;</td>
            <td style="padding-left: 20px;" class="font12" valign="middle" align="left">Reminder Phrase</td>
          <td valign="middle" align="left">
          <input class="txtborder" id="passwd_rem" name="passwd_rem" style="width: 200px;" type="text"></td>
        </tr>
        <tr height="35">
            <td valign="middle" align="left">&nbsp;</td>
            <td style="padding-left: 20px;" class="font12" valign="middle" align="left">Mobile Phone</td>
          <td valign="middle" align="left">
          <input class="txtborder" id="mobile_num" name="mobile_num" style="width: 200px;" type="text"></td>
        </tr>
        <tr height="35">
            <td valign="middle" align="left">&nbsp;</td>
            <td style="padding-left: 20px;" class="font12" valign="middle" align="left">Business Name</td>
          <td valign="middle" align="left">
          <input class="txtborder" id="business_name" name="business_name" style="width: 200px;" type="text"></td>
        </tr>
        <tr height="35">
            <td valign="middle" align="left">&nbsp;</td>
            <td style="padding-left: 20px;" class="font12" valign="middle" align="left">Age</td>
          <td valign="middle" align="left">
          <input class="txtborder" id="age" name="age" style="width: 200px;" type="text"></td>
        </tr>-->
											<tr height="35">
												<td valign="middle" align="left">&nbsp;</td>
												<td style="padding-left: 20px;" class="font12"
													valign="middle" align="left">Postcode</td>
												<td valign="middle" align="left"><input class="txtborder"
													id="zipcode" name="zipcode" style="width: 200px;"
													type="text"></td>
											</tr>
											<tr height="35">
												<td valign="middle" align="left">&nbsp;</td>
												<td style="padding-left: 20px;" class="font12"
													valign="middle" align="left">What best describes you?</td>
												<td valign="middle" align="left"><select name="user_type"
													id="user_type" class="txtborder" style="width: 210px;">
														<option value="High School">High school student</option>
														<option value="College Undergrad">Undergraduate college
															student</option>
														<option value="College Grad">Graduate college student</option>
														<option value="PHD">PHD student</option>
														<option value="Teacher">Teacher/professor</option>
														<option value="Researcher">Researcher</option>
														<option value="Librarian">Librarian</option>
														<option value="Other">Other</option>
												</select></td>
											</tr>
											<tr>
												<td align="left" valign="middle" bgcolor="#535353"></td>
												<td height="22" colspan="2" align="left" valign="middle"
													bgcolor="#CCCCCC" class="font12"
													style="padding-left: 20px;"><b>Please enter the code you
														see in the image:</b>
												</td>
											</tr>
											<tr height="35">
												<td valign="middle" align="left">&nbsp;</td>
												<td style="padding-left: 20px;" class="font12"
													valign="middle" align="left">Security code <span
													class="red">*</span>
												</td>
												<td valign="top" align="left"><input id="security_code"
													class="txtborder" name="security_code"
													style="width: 100px;" type="text" /> <img
													src="includes/CaptchaSecurityImages.php?width=60&height=25&characters=5" />
												</td>
											</tr>
											<tr>
												<td colspan="3" align="left" valign="middle"></td>
											</tr>
											<tr>
												<td align="left" valign="middle" bgcolor="#535353"></td>
												<td height="22" colspan="2" align="left" valign="middle"
													bgcolor="#CCCCCC" class="font12"
													style="padding-left: 20px;">&nbsp;</td>
											</tr>
											<tr>
												<td align="left" valign="middle">&nbsp;</td>
												<td colspan="2" align="left" valign="middle" class="font12"
													style="padding-left: 20px;"><span class="red">*</span>&nbsp;<label><input
														name="parent_permission" id="parent_permission"
														type="checkbox" value="1" /><span id="sp_parent_permission"> I am 13 years or older or
														have permission from my parents.</span></label>
												</td>
											</tr>
											<tr>
												<td align="left" valign="middle">&nbsp;</td>
												<td colspan="2" align="left" valign="middle" class="font12"
													style="padding-left: 20px;"><span class="red">*</span>&nbsp;<label><input
														name="terms" id="terms" type="checkbox" value="1" /><span id="sp_terms"> I
														agree to the terms and conditions of the </span><a
														href="index.php?page=privacy" target="_blank">Privacy
															Policy</a>.</label>
												</td>
											</tr>
											<tr>
												<td colspan="3" align="left" valign="middle"></td>
											</tr>
											<tr height="35">
												<td colspan="2" valign="middle" align="left"></td>
												<td valign="middle" align="left"><input
													class="registerbutton" value="" name="register"
													type="submit"> <input type="hidden" name="process"
													id="process" value="" /> <input type="hidden" name="module"
													id="module" value="register" /></td>
											</tr>
										</tbody>
									</table>
								</fieldset>
							</td>
							<td width="25%" align="center" valign="top">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="12%" align="center" valign="middle">&nbsp;</td>
										<td width="88%" align="left" valign="middle">&nbsp;</td>
									</tr>
									<tr>
										<td align="center" valign="middle"><img
											src="images/listStyle.png" border="0"></td>
										<td align="left" valign="middle"><a
											href="index.php?page=login" class="font12">Already Member?
												Sign In</a></td>
									</tr>
									<tr>
										<td align="center" valign="middle">&nbsp;</td>
										<td align="left" valign="middle">&nbsp;</td>
									</tr>
									<tr>
										<td align="center" valign="middle"><img
											src="images/listStyle.png" border="0"></td>
										<td align="left" valign="middle"><a
											href="index.php?page=forgot_password" class="font12">Forgot
												Password?</a></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td colspan="2" align="left" valign="middle">&nbsp;</td>
						</tr>
					</tbody>
				</table>
			</form>

		</div>

		<?php //include("includes/right_content.php");?>



		<!-- End contentwarp -->
		<div style="clear: both;"></div>
	</div>
	<!-- End mainWarpArea -->
</div>


